<?php

namespace plugin\admin\app\model;

use plugin\admin\app\model\Base;
use support\think\Model;

/**
 * @property integer $id ID(主键)
 * @property string $event 事件
 * @property string $mobile 手机号
 * @property string $code 验证码
 * @property integer $times 验证次数
 * @property string $ip IP
 * @property string $created_at 创建时间
 */
class V1SmsTp extends Model
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'wa_v1_sms';

    /**
     * The primary key associated with the table.
     *
     * @var string
     */
    protected $primaryKey = 'id';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'integer';

    // 定义时间戳字段名
    protected $createTime = 'created_at';
    protected $updateTime = false;
    protected $deleteTime = false;

    // 字段类型或者格式转换
    protected $type = [
        'created_at' => 'datetime:Y-m-d H:i:s',
    ];


}
